<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Hello Vue.js</title>
    <script src="./lib/vue.js"></script>
</head>
<body>
    <div id = 'app'>
        {{message}} <br/>
        {{time}}
    </div>

    <div id="id1">
        <ul v-for = 'item in days'>
            <li>{{item}}</li>
        </ul>
    </div>
    <script>
        const app = new Vue({
            el:'#app',//el属性决定vue挂载到哪个元素
            data:{//data用于存储一些数据
                message:'hello world!',
                time:'2021-7-5',
            }
        })
        let id1 = new Vue({
            el:'#id1',
            data:{
                days:['7-2','7-3','7-4','7-5','7-6']
            }
        })
    </script>
</body>
</html>